/*
 * @Author: lei.wang
 * @Date: 2023-10-25 14:29:45
 * @LastEditors: lei.wang
 * @LastEditTime: 2023-11-01 10:55:40
 * @Description: 
 */
import { createApp } from 'vue'
import '@/styles/index.scss'
// import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
import router from './router'
import store from "@/store"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
console.log(`项目环境:${import.meta.env.VITE_NODE_ENV};项目标题:${import.meta.env.VITE_APP_TITLE}`)
//引入elemet plus icon全局组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus, {locale: zhCn})
app.use(router)
app.use(store)
app.mount('#app')
